import {GameMap} from "../map/gameMap.mjs";
import {Player} from "./player.mjs";

const mapSize = {width: 15, height: 15}


// let container = document.getElementById('chessboard')
let container = document.querySelector('#chessboard')

let gameMap = new GameMap(container, mapSize)
let pos = [
    Math.floor(mapSize.width / 2),
    Math.floor(mapSize.height / 2)]

// let pos = 【7， 1】

let player = new Player(...pos, gameMap)

player.setEventListener()
